package com.chen.shopping_common.result;

import lombok.*;

import java.io.Serializable;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class BusException extends RuntimeException{

    private Integer code;
    private String msg;

    public BusException(CodeEnum codeExum){
        this.code = codeExum.getCode();
        this.msg = codeExum.getMessage();
    }
}
